package ex6;

public class Tan extends Function implements  Ifun {
    public Tan() {
    }

    public Tan(String name, double a) {
        super(name, a);
    }

    @Override
    public void getValue() {
        double t  = Math.toRadians(super.getA());
        System.out.println(super.getName()+((int)super.getA())+"="+Math.tan(t));
    }
}
